/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package ar.com.siglo21.ppo.persistence.dao;

import ar.com.siglo21.ppo.persistence.Persistente;
import ar.com.siglo21.ppo.util.TrabajoIntegradorException;
import java.sql.SQLException;

public interface GenericDAO <T extends Persistente>{
    
    void agregar(T object) throws SQLException, TrabajoIntegradorException;
    
    boolean existe(T object) throws SQLException, TrabajoIntegradorException;
    
    void eliminar (T object) throws SQLException, TrabajoIntegradorException;
    
    T leer(int id) throws SQLException, TrabajoIntegradorException;
    
    void actualizar(T object) throws SQLException, TrabajoIntegradorException;
    
}
